<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="css/mui.min.css" rel="stylesheet" />
	</head>
    <style type="text/css">
    	img{
    		width: 100%;
    	}
    	.mui-btn-block{
    		margin: 20px 0;
    		width: 94%;
    		margin-left: 3%;
    		padding: 10px 0;
    		background-color: #E42904;
    	}
    </style>
	<body>
		<div class="mui-content">
		    <img src="img/bannner_ljiek@2x(1).png"/>
		    <button id="getapp" type="button" class="mui-btn mui-btn-red mui-btn-block">下载借款王APP</button>
		</div>
		<script src="js/mui.min.js"></script>
		<script type="text/javascript">
			mui.init();
			var isios=0;
//判断终端开始
var browser={
    versions:function(){
        var u = navigator.userAgent, app = navigator.appVersion;
        return {
            trident: u.indexOf('Trident') > -1, //IE内核
            presto: u.indexOf('Presto') > -1, //opera内核
            webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
            gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,//火狐内核
            mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
            ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
            android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
            iPhone: u.indexOf('iPhone') > -1 , //是否为iPhone或者QQHD浏览器
            iPad: u.indexOf('iPad') > -1, //是否iPad
            webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部
            weixin: u.indexOf('MicroMessenger') > -1, //是否微信 （2015-01-22新增）
            qq: u.match(/\sQQ/i) == " qq" //是否QQ
        };
    }(),
    language:(navigator.browserLanguage || navigator.language).toLowerCase()
}
if(browser.versions.ios){
	isios=1;
}
//判断终端结束
			document.getElementById('getapp').addEventListener('tap',function () {
			        if(isios==1){
//				  	是ios
				  	window.location.href='https://itunes.apple.com/cn/app/jie-kuan-wang-you-xin-yong/id1136185453?mt=8';
				  }else{
				  	window.location.href='http://a.app.qq.com/o/simple.jsp?pkgname=com.zqxq.jiekuanwang';
				  }
			})
		</script>
	</body>

</html>